package top.wettis.chat.constant;

import lombok.Getter;

@Getter
public enum ResultCode {

    SAVE_OK(200, "存储成功"),
    DELETE_OK(200, "删除成功"),
    GET_OK(200, "获取成功"),
    UPDATE_OK(200, "更新成功"),
    LOGIN_OK(200, "登陆成功"),
    REGISTER_OK(400,"注册成功"),

    REGISTER_ERR(400,"注册失败"),
    SAVE_ERR(400,"存储失败"),
    DELETE_ERR(400, "删除失败"),
    UPDATE_ERR(400, "更新失败"),
    GET_ERR(400, "获取失败"),
    LOGIN_ERR(400, "登陆失败");


    private final Integer code;
    private final String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
